package com.studyinghome.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.yulichang.base.MPJBaseService;
import com.studyinghome.dto.UserDTO;
import com.studyinghome.entity.User;

import java.util.List;

/**
 * @author Leslie
 * @create 2023-01-04 16:47
 **/
public interface UserService extends MPJBaseService<User> {
    /**
     * 列出所有
     *
     * @return {@link List}<{@link UserDTO}>
     */
    List<UserDTO> getList();

    /**
     * 分页查询
     *
     * @param current 当前
     * @param size    大小
     * @return {@link IPage}<{@link UserDTO}>
     */
    IPage<UserDTO> getPage(int current, int size);
}
